using TMPro;
using UnityEngine;
using UnityEngine.UI;

namespace DTFramework.UI
{
    /// <summary>
    /// 检查运行环境
    /// </summary>
    public class UICheckRunEnvirForm : MonoBehaviour
    {
        [SerializeField] TextMeshProUGUI m_TextTip;
        [SerializeField] Button m_BtnExit;
        // Start is called before the first frame update
        void Start()
        {
            m_BtnExit.onClick.AddListener(() =>
            {
                GameEntry.ApplicationQuit();
            });
        }
        public void SetText(string content)
        {
            m_TextTip.text = content;
            m_BtnExit.gameObject.SetActive(content != null);
        }
    }
}
